// 访问 token 缓存的 key
const ACCESS_TOKEN_KEY = 'finance-token'
// 刷新 token 缓存的 key
// 正常开发，带着原token访问refresh_token接口拿到新token
// const REFRESH_TOKEN_KEY = 'refresh_token'

export const setToken = (token) => {
  localStorage.setItem(ACCESS_TOKEN_KEY, token)
}
export const getToken = (token) => {
  return localStorage.getItem(ACCESS_TOKEN_KEY)
}
export const removeToken = () => {
  localStorage.removeItem(ACCESS_TOKEN_KEY)
}
